package com.yellow.dispatchservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "courier-service",path = "/courier")
public interface VehicleFeignService {

    @GetMapping("/getId/{name}")
    Integer getCourierIdByCourierName(@PathVariable(value = "name") String courierName);
}
